﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MakeItWeb.Framework
{
    public interface IMakeItWebControl
    {
        // accessors
        HtmlPage CurrentHtmlPage { get; }
        string CurrentUserName { get; }
        Member CurrentMember { get; }
        bool WebOnlyMemberInd { get; }
        bool DisplayMemberSearchInd { get; set; }
        bool DisplayDynamicBackgroundForAdmin { get; }

        // methods
        bool IsInRole(string sRoleName);
        bool IsPageAdministrator();
        void RegisterAdminFunction(string sText, string sNavigationUrl, string sIconImageUrl);
        void ClearAdminFunctions();
        string SelectedSection { get; }
    }
}
